package com.exmaple.dto;

import java.io.Serializable;

public class RpcPing implements Serializable {

    private long now;

    private String url;

    private String ip;

    private int port;

    public long getNow() {
        return now;
    }

    public void setNow(long now) {
        this.now = now;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public RpcPing() {
    }

    public RpcPing(long now, String url, String ip, int port) {
        this.now = now;
        this.url = url;
        this.ip = ip;
        this.port = port;
    }

    @Override
    public String toString() {
        return "RpcPing{" +
                "now=" + now +
                ", url='" + url + '\'' +
                ", ip='" + ip + '\'' +
                ", port=" + port +
                '}';
    }
}
